package com.itheima.mapper.backend;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetMealCheckGroupMapper {
    @Delete("delete from t_setmeal_checkgroup where checkgroup_id=#{CheckGroupId}")
    void deleteByCheckGroupId(Integer CheckGroupId);


    @Select("select checkgroup_id from t_setmeal_checkgroup where setmeal_id=#{setmealId}")
    List<Integer> findCheckGroupIdsBySetmealId(Integer setmealId);
}
